/*
 * XML Type:  VestInfo
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.VestInfo
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML VestInfo(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class VestInfoImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.VestInfo
{
    
    public VestInfoImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName VESTDATE$0 = 
        new javax.xml.namespace.QName("", "VESTDATE");
    private static final javax.xml.namespace.QName VESTPCT$2 = 
        new javax.xml.namespace.QName("", "VESTPCT");
    
    
    /**
     * Gets the "VESTDATE" element
     */
    public java.lang.String getVESTDATE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VESTDATE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "VESTDATE" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetVESTDATE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(VESTDATE$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "VESTDATE" element
     */
    public boolean isSetVESTDATE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(VESTDATE$0) != 0;
        }
    }
    
    /**
     * Sets the "VESTDATE" element
     */
    public void setVESTDATE(java.lang.String vestdate)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VESTDATE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VESTDATE$0);
            }
            target.setStringValue(vestdate);
        }
    }
    
    /**
     * Sets (as xml) the "VESTDATE" element
     */
    public void xsetVESTDATE(net.ofx.types.x2003.x04.DateTimeType vestdate)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(VESTDATE$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(VESTDATE$0);
            }
            target.set(vestdate);
        }
    }
    
    /**
     * Unsets the "VESTDATE" element
     */
    public void unsetVESTDATE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(VESTDATE$0, 0);
        }
    }
    
    /**
     * Gets the "VESTPCT" element
     */
    public java.lang.String getVESTPCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VESTPCT$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "VESTPCT" element
     */
    public net.ofx.types.x2003.x04.RateType xgetVESTPCT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RateType target = null;
            target = (net.ofx.types.x2003.x04.RateType)get_store().find_element_user(VESTPCT$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "VESTPCT" element
     */
    public void setVESTPCT(java.lang.String vestpct)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VESTPCT$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VESTPCT$2);
            }
            target.setStringValue(vestpct);
        }
    }
    
    /**
     * Sets (as xml) the "VESTPCT" element
     */
    public void xsetVESTPCT(net.ofx.types.x2003.x04.RateType vestpct)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.RateType target = null;
            target = (net.ofx.types.x2003.x04.RateType)get_store().find_element_user(VESTPCT$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.RateType)get_store().add_element_user(VESTPCT$2);
            }
            target.set(vestpct);
        }
    }
}
